package com.wing.wechat;

import com.wing.wechat.vo.*;

/**
 * 企业微信部门服务-service
 */
public interface WechatDepartmentService {

    /**
     * 获取access_token
     *
     * @param secret 应用密钥
     * @return
     */
    public ResponseToken getAccessToken(String secret);


    /**
     * 获取部门列表
     *
     * @param departmentId 部门ID
     * @return
     */
    public ResponseDepartmentList departmentList(Integer departmentId);

    /**
     * 获取部门详情
     *
     * @param id 部门ID
     * @return
     */
    public ResponseDepartmentDetail departmentDetail(Integer id);


    /**
     * 创建部门
     *
     * @param requestCreateDepartment 部门参数
     * @return
     */
    public ResponseCreateDepartment createDepartment(RequestCreateDepartment requestCreateDepartment);

    /**
     * 更新部门
     *
     * @param requestUpdateDepartment 部门参数
     * @return
     */
    public ResponseUpdateDepartment updateDepartment(RequestUpdateDepartment requestUpdateDepartment);

    /**
     * 删除部门
     *
     * @param departmentId 部门ID
     * @return
     */
    public ResponseDeleteDepartment delDepartment(Integer departmentId);


}
